% TEST_ID: LANG-EXPAND-0030
% CATEGORY: language/array-ops/ops
% 测试 * 运算符

function test_mtimes
    A = [1, 2; 3, 4];
    B = [5, 6; 7, 8];
    C = A * B;
    assert(isequal(C, [19 22; 43 50]));

    A = [1, 2; 3, 4];
    B = ones(2, 1);
    C = A * B;
    assert(isequal(C, [3; 7]));

    A = [1, 2; 3, 4];
    B = [5];
    C = A * B;
    assert(isequal(C, [5 10; 15 20]));
end


